package main

/*
* Author: JacksonCoder
* CreateTime: 2024/11/28
 */

func main() {
	var a int = 35
	var b int = 89
	println(a + b)
	println(a - b)
	println(a * b)
	if b != 0 {
		println(a / b)
	}

	// 取余
	if b != 0 {
		println(a % b)
	}
	//println(a % 0) // 除数不能为0

	var c float64 = 342.14
	println(a + int(c)) // 精度损失
	// or
	println(float64(a) + c)

	//
	var d int32 = 23423
	println(int(d) + a) //

}
